<taglib name="Common\TagLib\Sohtml"/>
<div class="main-title"><h2>{$meta_title}</h2><span class="breadcrumb">[<a href="{:U('Role/role_list')}">角色管理</a><i>&raquo;</i><a href="__SELF__">{$meta_title}</a>]</span></div>
<form method="post" action="{:U('Role/role_edit_save')}" id="frm-edit">
    <table class="table-form">
        <tr>
            <th>名称：</th><td><input type="text" name="role_name" value="{$data.role_name}" required/></td>
        </tr>
        <tr>
            <th>代码：</th><td><input type="text" name="role_code" value="{$data.role_code}" required/></td>
        </tr>
        <tr>
            <th>分支：</th><td><sohtml:treeselect name="parent_id" datasource="role_list" value="{$data.parent_id}" /></td>
        </tr>
        <tr>
            <th>排序：</th><td><input type="text" name="ordinal" value="{$data.ordinal|default=0}" required/></td>
        </tr>
        <tr>
            <th>备注：</th><td><input type="text" name="remark" value="{$data.remark}" required/></td>
        </tr>
        <tr>
            <th>状态：</th><td><sohtml:radio name="state" items="0=未审核;1=正常;2=禁用" value="{$data.state|default=0}" /></td>
        </tr>
    </table>
    <input type="hidden" name="id" value="{$data.id}" />
    <button type="submit">保存</button><button type="reset">重置</button>
</form>
<script src="__THEME__Crm/Default/Script/User/admin-edit.js" type="text/javascript"></script>